package com.guangzhi.weijianzhi.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.guangzhi.weijianzhi.R;
import com.guangzhi.weijianzhi.company.center.MyLoginForGetActivity;
/**
 * 修改密码
 * @author Administrator
 *
 */
public class AlterPassWordActivity extends BaseActivity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tz_alter_password_layout);
		
		initView();
	}

	private void initView() {
		// TODO Auto-generated method stub 
		initTitle();
		titleTextV.setText("密码修改");
		findViewById(R.id.pay_alter).setOnClickListener(this);
		findViewById(R.id.user_alter).setOnClickListener(this);
		goBack.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intent;
		switch (v.getId()) {
		case R.id.pay_alter:
			  intent = new Intent(this, MyLoginForGetActivity.class);
			  intent.putExtra("type", "pay");
			startActivity(intent);
			break;
		case R.id.user_alter:
		     intent = new Intent(this, MyLoginForGetActivity.class);
		     intent.putExtra("type", "login");
			startActivity(intent);
			break;
		case R.id.title_back:
			onBackPressed();
			break;
		}
	}
}
